<?php

class User_Form_Register extends Form_Base {

    public function init()
    {
        $email    = new Form_Element_Email();
        $password = new Form_Element_Password();

        $passwordRestore = new Form_Element_Password("passwordRestore", array(
                    'label' => "Повтор пароля"
                ));

        $submit = new Form_Element_Submit("submit", array(
                    'label' => "Зарегистрироваться"
                ));

        $this->addDisplayGroup(array($email, $password, $passwordRestore), 'default', array(
            'legend' => 'Регистрация'
        ));

        $this->_addDisplayGroupActions(array($submit));

    }

}

